package CtrLayer;

import java.util.ArrayList;

import ModelLayer.OrderCollection;

/**
 * Write a description of class OrderCtr here.
 * 
 * @author (your name)
 * @version (a version number or a date)
 */
public class OrderCtr
{

	public OrderCtr()
	{

	}

	public String add_order(boolean with_delivery, String delivery_note,
			String additional_information, boolean is_complete,
			String terms_of_delivery, ArrayList<String> ids,
			ArrayList<String> amounts, double special_discount,
			double group_discount)
	{
		return OrderCollection.add_order(with_delivery, delivery_note,
				additional_information, terms_of_delivery, is_complete, ids,
				amounts, special_discount, group_discount);
	}

	public double provide_total_cost_of_order(String id)
	{
		return OrderCollection.provide_total_cost_of_order(id);
	}
	
	public double calculate_total_cost_of_order(ArrayList<String> ids, ArrayList<String> amounts, double special_discount,  boolean with_delivery, double group_discount)
	{
		return OrderCollection.calculate_total_cost_of_order(ids, amounts, special_discount, with_delivery, group_discount);
	}
	
	public ArrayList<String> get_ids(String id)
	{
		return OrderCollection.get_ids (id);
	}
	
	public ArrayList<String> get_amounts(String id)
	{
		return OrderCollection.get_amounts(id);
	}

	public boolean is_such_id(String id)
	{
		return OrderCollection.is_such_id(id);
	}

	public boolean is_completed(String id)
	{
		return OrderCollection.is_completed(id);
	}

	public void close_order(String id)
	{
		OrderCollection.close_order(id);
	}

	public String display_order(String id)
	{
		return OrderCollection.display_order(id);
	}

	public String display_pending_orders()
	{
		return OrderCollection.display_pending_orders();
	}

	public String display_all_orders()
	{
		return OrderCollection.display_all_orders();
	}
	
	public Object[] get_order_fields(String id)
	{
		return OrderCollection.get_order_fields(id);
	}

	/*************************** DISCOUNTS ********************************/
	public void save_discounts()
	{
		OrderCollection.save_discounts();
	}

	public String display_maximum_discount()
	{
		return OrderCollection.display_maximum_discount();
	}

	public String display_pickup_discount()
	{
		return OrderCollection.display_pickup_discount();
	}

	public void change_pickup_discount(double discount)
	{
		OrderCollection.change_pickup_discount(discount);
	}

	public void change_maximum_discount(double discount)
	{
		OrderCollection.change_maximum_discount(discount);
	}

}
